/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PACIENTESMATERIAIS")
public class PacientesMateriaisProteu implements Serializable{

    @Id
    @Column(name="PACM_IN_CODIGO")
    private Integer pacmInCodigo;
    @Column(name="AGD_ST_CODIGO")
    private String agdStCodigo;
    @Column(name="SIM_ST_COD_TISS")
    private String simStCodTiss;
    @Column(name="PACM_IN_QTD")
    private Integer pacmInQtd;
    @Column(name="PACM_CH_FLAG")
    private String pacmChFlag;
    @Column(name="PACM_DT_INCLUSAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pacmDtInclusao;


    public String getAgdStCodigo() {
        return agdStCodigo;
    }

    public void setAgdStCodigo(String agdStCodigo) {
        this.agdStCodigo = agdStCodigo;
    }

    public String getPacmChFlag() {
        return pacmChFlag;
    }

    public void setPacmChFlag(String pacmChFlag) {
        this.pacmChFlag = pacmChFlag;
    }

    public Date getPacmDtInclusao() {
        return pacmDtInclusao;
    }

    public void setPacmDtInclusao(Date pacmDtInclusao) {
        this.pacmDtInclusao = pacmDtInclusao;
    }

    public Integer getPacmInCodigo() {
        return pacmInCodigo;
    }

    public void setPacmInCodigo(Integer pacmInCodigo) {
        this.pacmInCodigo = pacmInCodigo;
    }

    public Integer getPacmInQtd() {
        return pacmInQtd;
    }

    public void setPacmInQtd(Integer pacmInQtd) {
        this.pacmInQtd = pacmInQtd;
    }

    public String getSimStCodTiss() {
        return simStCodTiss;
    }

    public void setSimStCodTiss(String simStCodTiss) {
        this.simStCodTiss = simStCodTiss;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PacientesMateriaisProteu other = (PacientesMateriaisProteu) obj;
        if (this.pacmInCodigo != other.pacmInCodigo && (this.pacmInCodigo == null || !this.pacmInCodigo.equals(other.pacmInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 83 * hash + (this.pacmInCodigo != null ? this.pacmInCodigo.hashCode() : 0);
        return hash;
    }



}
